

export default {
  more20stu(state){
    return state.students.filter(s=>s.age>22)
  },
  more20stulen(state,getters){
    return getters.more20stu.length
  },
  moreAgestu(state){
    return function (age){
      return state.students.filter(s=>s.age>age)
    }
  }
}
